<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>设置向导</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/bootstrap/css/bootstrap.min.css">
<link href="__PUBLIC__/Admin/css/style.css" rel="stylesheet" type="text/css">
<script src="__PUBLIC__/Admin/bootstrap/js/jquery.min.js"></script>
<script src="__PUBLIC__/Admin/bootstrap/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/Admin/js/artDialog/artDialog.js"></script>
<script src="__PUBLIC__/Admin/js/artDialog/plugins/iframeTools.js"></script>

</head>

<body>

<h1 style="font-size:18px; height:40px; line-height:40px; text-indent:1em; font-family:'微软雅黑';">第{$step}步　{$setup.title} 【需要您保存设置的地方请按“保存”，再点击下一步】</h1>

<iframe id="iframe" style="display:none;" src="{$setup.url}" marginheight="0" marginwidth="0" frameborder="0" scrolling="yes" width="100%" onload="setfirame();"></iframe>

<script>
function setfirame(){
	var iframe = document.getElementsByTagName('iframe').item(0).contentDocument;
	
	
	if(iframe.getElementsByClassName('header').length > 0){
		iframe.getElementsByClassName('header').item(0).style.display = 'none';
	}
	if(iframe.getElementsByClassName('w790').length > 0){
		iframe.getElementsByClassName('w790').item(0).style.marginTop = '0px';
	}
	
	
	
	
	if(iframe.getElementsByClassName('pages').length > 0){
	    iframe.getElementsByClassName('pages').item(0).style.position = 'static';
	    iframe.getElementsByClassName('pages').item(0).style.background = 'none';
	    iframe.getElementsByClassName('pages').item(0).style.borderTop = '0';
	}
	
	var windowHeight = 600;
	document.getElementById('iframe').height = windowHeight;
	document.getElementById('iframe').style.display = 'block';
}

function submitSuccess(a,b,c){
	document.getElementsByTagName('iframe').item(0).contentWindow.location.reload();
}


function complete(){
	parent.window.location.href = '{:U('Sitecheck/index')}';
}

</script>

<div style="background:#fff; padding:10px; text-align:right;">
<notempty name="prevurl">
<a href="{$prevurl}" class="btn btn-success">上一步</a>
</notempty>

<notempty name="nexturl">
<a href="{$nexturl}" class="btn btn-success">下一步</a>

<else/>
<a href="javascript:void(0);" onClick="complete();" class="btn btn-success">完成</a>
</notempty>
</div>
</body>
</html>
